<?php
function skel_title($Q,$dblayer,$params) {

	$titleImageSrc = "";
	//if (isset($Q['icons']['map']['large']['actions']['documentation'])) {
		//$titleImageSrc = $Q['base_url']."/".$Q['icons']['location']."/".$Q['icons']['map']['large']['actions']['documentation'];
	//} else {
		$titleImageSrc = system_get_var($dblayer,"default_cpanel_icon");
	//}
	$title = "<h1><img valign='middle' src='{$titleImageSrc}' />&nbsp;Skeleton Module</h1>\n";
	
	return $title;
}
function skel_task($Q,$dblayer,$providers,$params) {
$page = array();
$page['title'] = "";
$page['body'] = "";
	if (isset($params['task'])) {
		$task = $params['task'];
		$modref = "";
		if (isset($params['modref'])) {
			$modref = $params['modref'];
		}
		switch ($task) {
		default:
			/** Specifiy the default action **/
			$page['title'] .= "Skeleton Module";
			$page['body'] .= "<h2>Skeleton Module</h2>\n";
			$page['body'] .= "<p>You can use this module as a template to develop your own modules!</p>\n";
			$page['body'] .= "<h2>Credits</h2>\n";	
			$page['body'] .= "<p>\n";
			$page['body'] .= "Lead Developer: <a href='mailto:mike@ox-code.org'>Mike Smith</a><br />\n";
			$page['body'] .= "Contributor: <a href='mailto:jama251@googlemail.com'>Jack Adams</a>\n";
			$page['body'] .= "</p>\n";
			$page['body'] .= "<h2>GPLV3 License</h2>\n<iframe src='http://www.gnu.org/licenses/gpl-3.0.txt' style='width:100%;height:400px;'></iframe>\n";
		break;
		}//switch task
	}
return $page;
}
function skel_cpanel($Q,$dblayer,$params) {
	$modref = "skel";
	if (isset($params['modref'])) {
		$modref = $params['modref'];
	}
	$modImageSrc = "";
	//if (isset($Q['icons']['map']['large']['actions']['documentation'])) {
		//$modImageSrc = $Q['base_url']."/".$Q['icons']['location']."/".$Q['icons']['map']['large']['actions']['documentation'];
	//} else {
		$modImageSrc = system_get_var($dblayer,"default_cpanel_icon");
	//}
	$icons = array();
		$icon = array();
			$icon['label'] = "Skeleton Module";
			$icon['link'] = $Q{'base_url'}."/?module={$modref}";
			$icon['icon'] = $modImageSrc;
			$icon['group'] = "General";
		$icons[] = $icon;
	return $icons;
}
?>
